package com.wtf.generator.model.vo;

import com.baomidou.mybatisplus.annotation.DbType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.sql.DataSource;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
@Data
@ToString
public class DsVO {
    @ApiModelProperty(name = "primary" , value = "是否主数据源")
    private boolean primary;
    @ApiModelProperty(name = "dbType" , value = "数据库类型")
    private DbType dbType;
    @ApiModelProperty(name = "ds" , value = "数据源")
    private String ds;
    @ApiModelProperty(name = "host" , value = "主机地址")
    private String host;
    @ApiModelProperty(name = "port" , value = "端口")
    private Integer port;
    @ApiModelProperty(name = "username" , value = "用户")
    private String username;
    @ApiModelProperty(name = "password" , value = "密码")
    private String password;
    @ApiModelProperty(name = "dbName" , value = "数据库")
    private String dbName;
    @ApiModelProperty(name = "createTime" , value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date createTime;
}

